package com.CGFrame.struts.bean.company;

import java.util.List;

import com.CGFrame.struts.POJOs.Company;
import com.CGFrame.struts.bean.ProjectOperateFactory;
import com.CGFrame.struts.bean.ProjectOperate;

public class CompanyBean {
	public static List getRegusers(String companyId)
	{
		ProjectOperate pop = ProjectOperateFactory.getprojectOperate();
		List regusers = pop.Query("Reguser", "employee.sector.company.companyId,"+companyId, "regName","Asc");
		return regusers;
	}
	
	
	public static Company getCompanyById(Integer companyId) {
		ProjectOperate pop = ProjectOperateFactory.getprojectOperate();
		return (Company)pop.load("Company", companyId);
	}
}
